package com.javen.springbootneo4j.repository;

import com.javen.springbootneo4j.entity.node.Person;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface PersonRepository extends Neo4jRepository<Person, Long> {
    // 可以定义自定义查询方法

    Optional<Person> findByName(String name);


}
   